package org.zjx.swing.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor  // 必须添加无参构造（供ORM反射使用）
public class FontFilePath {
    private String fontPath;
    private String remark;
    private boolean checked = false;

    public FontFilePath(String fontPath, String remark) {
        this.fontPath = fontPath;
        this.remark = remark;
    }

    public boolean equals(FontFilePath fontPath) {
        return this.fontPath.equals(fontPath.fontPath);
    }

    @Override
    public String toString() {
        return (checked ? "[✔] " : "[ ] ") + remark + " - " +  fontPath;
    }
}
